home *** CD-ROM | disk | FTP | other *** search
/ C/C++ Users Group Library 1996 July / C-C++ Users Group Library July 1996.iso / listings / v_11_09 / 1109087a < prev    next >
Text File  |  1993-07-06  |  435b  |  16 lines

  1. void vaddosb(vect_in1,incr_in1,vect_in2,incr_in2,
  2.                                 vect_out,incr_out,vect_length)
  3. float *vect_in1, *vect_in2, *vect_out;
  4. int vect_length,incr_in1,incr_in2,incr_out;
  5.  
  6. {
  7.         int i;
  8.  
  9.         for(i=0;i<vect_length;++i)
  10.                 vect_out[i*incr_out] =
  11.                 (vect_in1[i*incr_in1] + vect_in2[i*incr_in2])
  12.                 / (vect_in1[i*incr_in1]- vect_in2[i*incr_in2]); 
  13.  
  14. }
  15.  
  16.